<?php 
$Toolbar = a2o('TemplateLoader', array('Module' => 'SocioRating', 'Template' => 'templates/toolbar.tpl'));
$Languages = a2o('TemplateLoader', array('Module' => 'SocioRating', 'Template' => 'templates/languages.tpl'));
$Search = a2o('TemplateLoader', array('Module' => 'SocioRating', 'Template' => 'templates/searchbar.tpl'));

$Content = a2o('TemplateLoader', array('Module' => 'SocioRating', 'Template' => 'templates/leftbar.tpl'))->GetText();
$LeftBar = a2o('TemplateLoader', array('Module' => 'SocioRating', 'Template' => 'templates/roundedcorners.tpl', 'Content' => $Content));
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
		<!-- if the language if in the url the keywords and description are translated too -->
		<meta name="keywords" content="<?php get( 'language' ) != '' ? text( 'sociorating, social, rating, tool, social rating tool, abilities' ) : 'sociorating, social, rating, tool, social rating tool, abilities' ?>" /> 
		<meta name="description" content="<?php get( 'language' ) != '' ? text( 'SocioRating. Know your abilities. A social rating tool.' ) : 'SocioRating. Know your abilities. A social rating tool.' ?>" /> 
		<link href="/css/sociorating.css" rel="stylesheet" type="text/css" />
		<link href="/css/ui-lightness/ui-lightness.css" rel="stylesheet" type="text/css"></link> 
		<script src="/js/jquery.js" type="text/javascript"></script> 
		<script src="/js/jquery-ui.js" type="text/javascript"></script>
		<style>
		.slider a
		{
			text-decoration: none;
			text-align: center;
		}
		</style>
		<!--[if lte IE 7]>
		<link rel="stylesheet" type="text/css" href="/css/ie.css" />
		<![endif]--> 
	</head>
	<body>			
		<div class="wrapper-center">
			<div id="page-flow" class="wrapper-center-content">
				<?php $Toolbar->Render( ) ?> 
				<?php $Languages->Render( ) ?> 
				<?php $Search->Render( ) ?> 
				<a href="/" style="display: block"><div id="header"></div></a>
				<div id="content-wrapper-background">
					<div id="content">
						<table class="layout columns" cellpadding="0" cellspacing="0">
							<tr>
								<td class="leftcolumn">								
									<?php $LeftBar->Render() ?>
								</td>
								<td class="maincolumn">								
								<?php 
								//App::$Current->ExecPage();
								foreach($this->Content as $Content)
								{
									a2o('TemplateLoader', array('Module' => 'SocioRating', 'Template' => 'templates/roundedcorners.tpl', 'Content' => $Content))->Render();
								}
								?>
								</td>
							</tr>
						</table>																	
					</div>
				</div>
				<div id="footer"></div>				
			</div>
		</div>
	</body>
</html>
